<!DOCTYPE html><!--schema.org -->
    <html xmlns:fb="http://ogp.me/ns/fb#" prefix="og: http://ogp.me/ns#">
        <head>
            <title>RAGE'n'FURIOUS</title>
            <meta property="og:title" content="RAGE'n'FURIOUS ~ the.game" />
            <meta property="og:type" content="website" />
            <meta property="og:url" content="http://ragenfurious.fr.nf/" />
            <meta property="og:image" content="https://legb6q.sn2.livefilestore.com/y1p1uQdoNRvW5Ooxxgr5x3gGYyaMdcxRWYZGRHZ3BB7Mdgl6ZDCglcbSi1UO8TTgwLJYUbTWVUH-0fuHhVnACmz7UMkEvncCU5C/nyan.png?psid=1" />
            <meta property="fb:app_id" content="370408382994780" />
            <meta property="fb:admins" content="1159350514" />
            <meta property="og:locale" content="fr_FR" />
            <meta property="og:locale:alternate" content="en_GB" />
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
            <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript" ></script>
            <link rel=stylesheet type="text/css" href="/files/css/jquery-ui/jquery-ui-1.8.19.custom.css" />
            <style>
                .ui-dialog .ui-dialog-title, .ui-dialog .ui-button, .ui-dialog #dialog-confirm-invite , .ui-dialog #dialog-message-ready , .ui-dialog #dialog-message-decline { font-size:12px;}
            </style>
            <link rel=stylesheet type="text/css" href="/files/css/stylehome.css" />       
            <script type="text/javascript" src="/files/js/home_login.js"></script>
        </head>
        <div id="fb-root"></div>
            <script>(function(d){
                    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
                    if (d.getElementById(id)) {return;}
                    js = d.createElement('script'); js.id = id; js.async = true;
                    js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1&appId=370408382994780";
                    ref.parentNode.insertBefore(js, ref);
                }(document));
                // Init the SDK upon load
                window.fbAsyncInit = function() {
                    FB.init({
                    appId      : '370408382994780', // App ID
                    status     : true, // check login status
                    cookie     : true, // enable cookies to allow the server to access the session
                    xfbml      : true  // parse XFBML
                    });

                    // listen for and handle auth.statusChange events
                    FB.Event.subscribe('auth.authResponseChange', function(response) {
                        window.location.reload();
                    });
                    FB.Event.subscribe("auth.statusChange", function(response)
                    {
                        /*if (response.status === 'connected') {
                             //window.location.reload();
                        } else*/ if (response.status === 'not_authorized') {
                              $( "#dialog:ui-dialog" ).dialog( "destroy" );
                                $("#dialog-connect-facebook").dialog({
                                        resizable: false,
                                        modal: true,
                                        buttons: {
                                                Ok: function() {
                                                        $( this ).dialog( "close" );
                                                }
                                        }
                                });
                        }
                    }    
                    );
                      
                } 
            </script>
	<body id="body">
		<div id="header"></div>
		<div id="menu_top">
			<table class="tablemenu">
				<tr>
				 <th class="thmenu"><a href="/rooms">HOME</a></th>
				 <th class="thmenu"><a href="/rooms/rules">RULES</a></th>
				 <th class="thmenu"><a href="/rooms/ranking">RANKING</a></th> 
				 <th class="thmenu"><a href="/rooms/contact">CONTACTS</a></th>
				 <th class="lastth"><a href="/lobby/logout" >LOGOUT</a></th>
				</tr>			  
			</table>
		</div>
	
                			
                        <div id="loginDiv">
                                <label for="login">Pseudo : </label>
                                <input type="text" id="login" name="login" />
                                <span id="indicator_Login" class=""></span>
                                <br />
                        </div>
                        <div id="passwordDiv">
                                <label for="password">Password : </label>
                                <input type="password" id="password" name="password" />
                                <br />
                        </div>								
                        <input id="send" style="margin-left:40px;" type="submit" value="RAAAGEEEEEE!"/>
                    </form>
		</div>
                <div id="register_area" style="display:none; margin:auto;">
                    <a href="#" onclick="returnPrincipal()"><- retour vers le choix principal</a>
                    <br /><br />
                    L'inscription sur le jeu est gratuite et se fait à l'aide d'un formulaire Facebook même pour les non-inscrits au site communautaire.<br />
                    <strong>Le processus n'effectue pas d'inscription à Facebook !</strong> (juste un moyen d'avoir une inscription centralisée)
                    <br />
                    <div style="text-align:center;">
                        <fb:registration 
                            fields="[
                            {'name':'name'},
                            {'name':'pseudo',      'description':'Pseudonyme',             'type':'text'},
                            {'name':'email'},
                            {'name':'password'},
                            {'name':'gender'},
                            {'name':'birthday'}
                            ]" 
                            redirect-uri="http://ragenfurious.fr.nf/lobby/register_finish/"
                            width="850">
                        </fb:registration>
                    </div>
                    
                    <form action="/lobby/newUser" style="display:none;" method="post">
                        <input type="radio" name="registered" value="true" id="registered_true" /> 
                        <label for="registered_true">Oui</label>
                        <input type="radio" name="registered" value="false" id="registered_false" /> 
                        <label for="registered_false">Non</label><br />				
                        <div style="display:none;" id="loginDiv">
                                <label for="login">Pseudo : </label>
                                <input id="login" name="login" />
                                <span id="indicator_Login" class=""></span>
                                <br />
                        </div>
                        <div style="display:none;" id="passwordDiv">
                                <label for="password">Password : </label>
                                <input id="password" name="password" />
                                <br />
                        </div>				
                        <div id="persoDiv" style="display:none;">
                                Personnage :<br />
                                <input type="radio" name="perso" value="0" id="pikachu" /> 
                                <label for="pikachu"><img src="/files/images/pikachuskate.png" alt="Pikachu" /></label>
                                <input type="radio" name="perso" value="1" id="alice" /> 
                                <label for="alice"><img src="/files/images/alice.png" alt="Alice" /></label>
                                <input type="radio" name="perso" value="2" id="tux" /> 
                                <label for="tux"><img src="/files/images/largetux-walk-right-0.png" alt="SuperTux" /></label><br />
                                <br />
                        </div>				
                        <input id="send" style="display:none;margin-left:42%;" onclick="sendData()" type="submit" value="Go!"/>
                    </form>
		</div>
		<div id="play_area">
			<img src="/files/images/defoulezvotrerage.png" style="margin:2px 0 0 100px;">
			<a href="#"><img class="play_button" src="/files/images/play_button.png"></a><br/>
			<p class="players_choice">
				<input type="text" id="pseudo_local1" size="18" />
				<input type="text" id="pseudo_distant1" size="18" />
			</p>
		</div>
                <div style="display:none; "id="dialog-connect-facebook" title="Connexion à l'aide de Facebook">
                    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
                        Il semblerait que vous ayez un compte Facebook. Vous pouvez vous inscrire rapidement en cliquant sur le bouton en dessous.<br />
                        <fb:login-button scope="email,user_about_me, user_birthday,friends_online_presence,publish_stream"></fb:login-button>
                    </p>
                </div>
       
	</body>

</html>